package com.cjc.express.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * ========================
 * Created with intellij IDEA
 * 创建者：杜一平
 * 日期：2017/1/22（星期一）
 * 时间：08：00
 * 说明：封装公司类
 * ==========================
 */
public class Company implements Serializable {
    // 快递公司id，具有唯一性
    private String companyid;

    // 快递公司名字，具有唯一性
    private String companyname;

    // 快递公司记录创建时间
    private Date companycreatetime;

    // 快递公司记录修改时间
    private Date companyupdatetime;

    // getter与setter方法
    public String getCompanyid() {
        return companyid;
    }

    public void setCompanyid(String companyid) {
        this.companyid = companyid;
    }

    public Company() {
    }

    public Company(String companyid, String companyname) {
        this.companyid = companyid;
        this.companyname = companyname;
    }

    ///
    public Company addCompanyId(String companyid) {
        this.companyid = companyid;
        return this;
    }

    public Company addCompanyname(String companyname) {
        this.companyname = companyname;
        return this;
    }
    ///

    public String getCompanyname() {
        return companyname;
    }

    public void setCompanyname(String companyname) {
        this.companyname = companyname;
    }

    public Date getCompanycreatetime() {
        return companycreatetime;
    }

    public void setCompanycreatetime(Date companycreatetime) {
        this.companycreatetime = companycreatetime;
    }

    public Date getCompanyupdatetime() {
        return companyupdatetime;
    }

    public void setCompanyupdatetime(Date companyupdatetime) {
        this.companyupdatetime = companyupdatetime;
    }


}